package spit;

public class SleepMessages extends Thread implements Runnable {
	
	String message;
	
	public SleepMessages(String aMessage) throws InterruptedException 
	{
		
		message = aMessage;
		play();
	}
	
	public void play() throws InterruptedException 
	{
		
		run();
		
	}

	@Override
	public void run() {
		
		int i = 1;
		
		String importantInfo[] = {
				"Mares eat oats",
				"Does eat oats",
				"Little lambs eat ivy",
				"A kid will ivy too"
		};
		
		while ( i == 1)
		{
			//Thread.sleep(1000);  
			
			System.out.println(message);
		}

		
	}

}
